!function($){
	$(function(){
		///完成情况
		$("#deskSeachButton").click(function(){
			wanChengQingKuangAPI();
			return false;
		});
		$('#deskSeachReload').click(function(){
			wanChengQingKuangAPI();
		});
		wanChengQingKuangAPI();
		///最近操作
		zuiJinCaoZuoAPI();
		//场站信息
		deskTongJiTableAPI();
		//
		deskCheckChangZhanAPI();
	})
}(window.jQuery)

function deskCheckChangZhanAPI(){
	$.ajax({
		type : "post",
		dataType : "json",
		url : appConfig.contPath+"/gy/changzhan!deskCheckChangZhanJson.action",
		data :{},
		success : function (data) {
			$("#xzCheck").html(data.data.xzCheck);
			$("#ghCheck").html(data.data.ghCheck);
			$("#revPJ").html(data.data.revPJ);
			$("#revDLZD").html(data.data.revDLZD);
		}
	});
}
function deskTongJiTableAPI(){
	$(".deskTongJiTable").html('数据加载中...');
	$.ajax({
		type : "post",
		dataType : "json",
		url : appConfig.contPath+"/gy/changzhan!deskTongJiJson.action",
		data :{},
		success : function (data) {
			$(".deskTongJiTable").html('');
			var output = $("#deskTongJiTableTemplate").render(data);
			$(".deskTongJiTable").append(output);
		}
	});
}
function wanChengQingKuangAPI(){
	$(".wanChengQingKuang").html('数据加载中...');
	$.ajax({
		type : "post",
		dataType : "json",
		url : appConfig.contPath+"/gy/changzhan!listWanChengJson.action",
		data :{},
		success : function (data) {
			$(".wanChengQingKuang").html('');
			var output = $("#wanChengQingKuangTemplate").render(data);
			$(".wanChengQingKuang").append(output);
		}
	});
}

function zuiJinCaoZuoAPI(){
	$(".zuiJinCaoZuo").html('数据加载中...');
	$.ajax({
		type : "post",
		dataType : "json",
		url : appConfig.contPath+"/log/changzhanlog!listTop10Json.action",
		data :{},
		success : function(data){
			$(".zuiJinCaoZuo").html('');
			var output = $("#zuiJinCaoZuoTemplate").render(data);
			$(".zuiJinCaoZuo").append(output);
		}
	});
}